
public class Multime {
	private int [] elements; 
	public void adauga (int elem){
		elements[elements.length+1] = elem;
	}
	public void sterge (int elem){
		int [] buffer = new int[0];
		for (int i=0; i<elements.length-1; i++)
			 buffer[i] = elements[i];
		elements = buffer;
	}//ca la Lista
	public void reuniune (Multime m1){
		for (int i=this.elements.length; i<(this.elements.length+m1.elements.length); i++)
			for (int j=0; j<m1.elements.length; j++)
			this.elements[i] = m1.elements[j];
	}
	
	
	/* Constructor:*/
	public Multime(int [] elements){
		this.elements = elements;
	}
}